package com.app.ytong.basis;

import android.os.Environment;

public class Constants {


	public final static int GOODSDATARESULT = 77;
	public final static int SCANDATASULT = 78;
	public final static int QCORDRESULT = 72;
	public final static int SUPPLIERRESULT = 61;
	///1工单、2领料、3退料、4入库
	public static final String GD = "1",LL = "2",TL= "3",RK = "4";


		public final static String BUY_IN = "采购入库";
		public final static String MAKE_IN = "生产入库";
		public final static String PRODUCT_IN = "成品入库";
		public final static String SALE_OUT = "销售出库";
		public final static String MAKE_OUT = "生产出库";
		public final static String PURCHASE = "供应商";
		public final static String CUSTOMER = "客户";

	//数据透传  服务的 UUID 为 0xFF00 = 0000ff00
	public static String DATA_TRANSMISSION= "0000ffe0-0000-1000-8000-00805f9b34fb";
	//蓝牙的特征值，发送
	public final static String SERVICE_EIGENVALUE_SEND = "0000ffe1-0000-1000-8000-00805f9b34fb";
	//蓝牙的特征值，接收
	public final static String SERVICE_EIGENVALUE_READ = "0000ffe1-0000-1000-8000-00805f9b34fb";





	/**读码结果发送的广播action*/
	public final static String ACTION_UHF_RESULT_SEND = "nlscan.intent.action.uhf.ACTION_RESULT";
	/**读码结果发送的广播Extra*/
	public final static String EXTRA_TAG_INFO = "tag_info";


//	 public static final boolean DEBUG = false;
	public static final boolean DEBUG = true;

	// 正式服务器
	public static final String URL_SERVICE ="";



	public static String URL_API = "/";
	public static String URL_API_LOGIN = URL_API;

	public static String URL_API_IMG = URL_API+"tmins/image?p=";
	public static String URL_API_IMG_COMMON = URL_API+"common/image?p=";


	//用户管理-登录
	public static String URL_LOGIN = URL_API_LOGIN+"users/login";


	//根据aid查询所有货品种类
	public static String URL_TYPES_SELECT_ALL = URL_API_LOGIN+"types/selectAll";


	//更新  根据AID查询App信息
	public static String URL_UPDATE_XF = URL_API+"app/getFileVersion";

	//  上传文件
	public static String URL_UPDATE_FILE = URL_API+"upload/UploadFile";

	//  根据aid查询所有货品等级
	public static String URL_LEVELS_SELECT_ALL = URL_API+"levels/selectAll";

	//  根据aid查询所有货品年份
	public static String URL_YEVELS_SELECT_ALL = URL_API+"yevels/selectAll";


	// 根据aid查询所有货品单位
	public static String URL_UNIT_SELECT_ALL = URL_API+"units/selectAll";

	// 根据aid,uno查询所有用户
	public static String URL_USER_SELECT_ALL = URL_API+"users/selectAll";
	// 根据aid,uno查询所有用户
	public static String URL_USER_SELECT_ALL_USER = URL_API+"users/selectAllusers";

	// 根据aid,uno查询所有用户
	public static String URL_KIND_SELECT_ALL = URL_API+"kinds/selectAll";

	// 添加供应商信息
	public static String URL_PURCHASE_INSERT= URL_API+"purchase/insert";

	// 根据cardno查询用户信息
	public static String URL_USER_SELECT_By_CARD_NO = URL_API+"users/selectByCardNo";

	// 根据aid,cno或cna查询所有供应商信息
	public static String URL_PURCHASE_SELECT_ALL = URL_API+"purchase/selectLikeAll";

	// 根据cardno查询供应商信息
	public static String URL_PURCHASE_SELECT_BY_CARD = URL_API+"purchase/selectByCardNo";


	// 根据aid查询所有客户信息
	public static String URL_CUSTOMERS_SELECT_ALL = URL_API+"customers/selectAll";

	// 添加入库
	public static String URL_INSTOCK_INSERT = URL_API+"instock/insert";
	// 添加出库
	public static String URL_OUTSTOCK_INSERT = URL_API+"outstock/insert";


	//根据aid,ifs,tid,yid查询所有货品信息
	public static String URL_GOODS_SELECT_ALL = URL_API+"goods/selectAll";

	//根据aid,ifs,tid查询所有茶青货品信息
	public static String URL_GOODS_SELECT_LEAF_ALL = URL_API+"goods/selectLeafAll";


	//添加溯源信息
	public static String URL_TRACES_INSERT = URL_API+"traces/insert";


	public static String URL_INSTOCK_SELECT_ALL= URL_API+"instock/selectMain";
	public static String URL_OUTSTOCK_SELECT_ALL= URL_API+"outstock/selectMain";

	//	根据单号mid,账套aid查询单据入库信息）
	public static String URL_INSTOCK_SELECT_LIST_BY_MID= URL_API_LOGIN+"instock/selectListByMid";
	//	根据单号mid,账套aid查询单据出库信息）
	public static String URL_OUTSTOCK_SELECT_LIST_BY_MID= URL_API_LOGIN+"outstock/selectListByMid";

	//分页根据AID,IFS类型,TID类别,CNA,BSTIME,BETIME查询入库明细
	public static String URL_INSTOCK_SELECT_PAGE= URL_API+"instock/selectPage";

	//根据aid,mid删除入库
	public static String URL_INSTOCK_DELETE_BATCH= URL_API+"instock/deleteBatch";
	//根据aid,iid,fsg删除入库子表
	public static String URL_INSTOCK_DELETE_SUB= URL_API+"instock/deleteSub";

	//根据aid,mid删除出库
	public static String URL_OUTSTOCK_DELETE_BATCH= URL_API+"outstock/deleteBatch";
	//根据aid,iid,fsg删除出库子表
	public static String URL_OUTSTOCK_DELETE_SUB= URL_API+"outstock/deleteSub";


	//分页根据AID,IFS类型,TID类别,CNA,BSTIME,BETIME查询入库明细
	public static String URL_STOCK_SELECT_ALL= URL_API+"stock/selectAll";













    //登录-登录
    public static String URL_USER_REFRESH_TOKEN = URL_API+"user/open/refreshToken";
	//登录-短信验证码
	public static String URL_LOGIN_MSGCODE = URL_API+"user/open/api/v1/captcha/add";
	//用户-修改密码
	public static String URL_USER_MODIFY_PWD= URL_API+"user/api/v1/user/changePwd";
	//用户-更新密码-找回密码
	public static String URL_USER_FIND_PWD = URL_API+"user/api/v1/user/updatePassWord";





	public static String FILE_PREFIX = "file://";
	public static String DRAWABLE_PREFIX = "drawable://";
	public static int PAGE_SIZE = 10;

	public static final String TEL = "";

	public static final long TIME_DELAY = 500;


	public static final int COLLECT_IMG_MAX = 6;

	/**
	 * 程序目录
	 */
	public static final String DIR = Environment.getExternalStorageDirectory()
			+ "/TeaYTong/";
	public static final String DIR_IN = BasisApp.getInstance().getFilesDir().getPath()
			+ "/";

	public static final String DIR_DOWNLOAD = DIR + "download/";
	public static final String DIR_TEMP = DIR + "temp/";
	public static final String DIR_LOG = DIR + "log/";
	public static final String DIR_FILE = DIR + "file_/";
	public static final String DIR_FILECACHE = DIR + "file/";
	public static final String DIR_CAMERA = DIR + "camera/";

	public static final int MAX_ZOOM_VISIABLE_LEVEL = 13;

}
